'use strict';

var minimist = require('minimist');

module.exports = function env() {
    var knownOptions = {
        string: 'env',
        default: {
            env: process.env.NODE_ENV || 'development'
        }
    };
    var options = minimist(process.argv.slice(2), knownOptions);
    return options.env;
};
